﻿using KeYan.Service.Model.OrderForm;
using KeYan.Service.Model.Shop;
using KeYan.Service.Model.UserLogin;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeYan.Service.Repository
{
    public class KeYanContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var sql = "Data Source=.;Initial Catalog=KeYan_Service;Integrated Security=True";
            optionsBuilder.UseSqlServer(sql);
        }
        public DbSet<UserInfo> tb_user_service_info { get; set; }
        public DbSet<OrderInfo> tb_user_service_orders { get; set; }
        public DbSet<ValidInfo> tb_user_service_vaild { get; set; }
        public DbSet<ServeInfo> tb_user_service_serve { get; set; }

    }
}
